﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="admin_manager_manager" Codebehind="manager.aspx.cs" %>     
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>后台用户管理</title>
     <link href="../css/skin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" language="javascript">


    function checkForm() {

        if ($("#txtUser").val() == "") {
            alert('登录名称不能为空！');
            $("#txtUser").focus();
            return false;

        }

        if ($("#txtName").val() == "") {
            alert('用户名称不能为空！');
            $("#txtName").focus();
            return false;

        }

        if ($("#ddlDepartment").val() == "") {
            alert('请选择部门！');
            $("#ddlDepartment").focus();
            return false;
        }
        return true;

    }

</script>
</head>


<body class="body">

                <div class="maincontent">
                    <form id="form2" runat="server">
 <div  class="navgater"><img src="../images/module.gif" width="20" height="22" alt=""/>
所在位置：员工列表->
<%= Request.QueryString["ot"] == "ed" ? "员工编辑" : "员工添加"%>

<a style=" display:block; float:right;" href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a>
</div>
                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td class="td_title">
                                    登录名称：</td>
                                <td class="td_content">
                                    <asp:TextBox ID="txtUser" Width="180px" runat="server"></asp:TextBox> *登录不区分大小写</td>
                            </tr>
                       
                            <tr>
                                <td class="td_title">
                                    用户名称：</td>
                                <td class="td_content">
                                  
                                  <asp:TextBox ID="txtName" runat="server" Width="180px"></asp:TextBox>
                                  </td>
                                  
                            </tr>
                               <tr>
                                <td class="td_title">
                                    选取部门：</td>
                                <td class="td_content">
                                   <asp:DropDownList ID="ddlDepartment" runat="server">  </asp:DropDownList>
                                   </td>
                                 
                            </tr>
                               <tr>
                                <td class="td_title">
                                    管理密码：</td>
                                <td class="td_content">
                                <asp:TextBox ID="txtPwd" runat="server" TextMode="Password" Width="180px"></asp:TextBox></td>
                                 
                            </tr>
                               <tr>
                                <td class="td_title">
                                    重复密码：</td>
                                <td class="td_content">
                                 <asp:TextBox ID="txtPwd2" runat="server" TextMode="Password" Width="180px"></asp:TextBox></td>
                                 
                            </tr>

                              <tr>
                                <td class="td_title">
                                    备注说明：</td>
                                <td class="td_content">
                                     <asp:TextBox ID="txtDesc"   runat="server" Width="302px" Height="98px"  MaxLength="200" TextMode="MultiLine"></asp:TextBox>
                                </td>
                                 
                            </tr>

               
                            <tr>
                                <td colspan="2">
                                    <asp:Button ID="btnSubmit" runat="server" Text="确  定" OnClientClick="return checkForm();" CssClass="formButton" OnClick="btnSubmit_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                                     <input id="btnBack" type="button" class="formButton" value=" 返  回 " onclick="javascript:location.href=document.referrer;"  /></td>
                            </tr>
                        </table>
                    </form>
                </div>

</body>



